package com.sykj.bsc.rwl.mapper;

import java.util.HashMap;
import java.util.List;

import com.sykj.bsc.rwl.po.SysMenu;
import com.sykj.bsc.rwl.po.SysRole;
import com.sykj.bsc.rwl.po.SysUser;
import com.sykj.bsc.rwl.po.extend.SysMenuExtend;
import com.sykj.bsc.rwl.po.extend.SysUserExtend;

public interface SysUserMapper {
	//通过用户账号查找
	public SysUser findByIdSysUser(String account) ; 
	//通过用户id查询角色id
	public SysRole findByIdSysRole(Integer user_id);
	//通过角色id查询父节点权限
	public List<SysMenuExtend> findByIdSysMenu(Integer role_id);
	//通过子节点权限id查询按钮
	public List<SysMenu> findByIdButton(HashMap<String, Integer> map);
	//查询所有用户信息
	public List<SysUserExtend> selectSysUser(SysUserExtend sysUserExtend);
	//添加用户信息
	public void insertSysUser(SysUserExtend  sysUserExtend);
	//修改用户
	public void updateSysUser(SysUserExtend  sysUserExtend);
	//通过用户id查询用户
	public SysUserExtend findByIdSelectSysUser(Integer user_id);
	//通过用户id删除用户
	public void deleteSysUser(Integer user_id);
	//添加中间表
	public void insertSysUserRole(SysUserExtend  sysUserExtend);
	//修改中间表
	public void  updateSysUserRole(SysUserExtend  sysUserExtend);
	//修改用户状态
	public void unfreezeSysUser(HashMap<String, Object> map);
}
